package ${package};

import org.springframework.context.annotation.Bean;

import com.goldgov.kcloud.KcloudApplication;
import com.goldgov.kcloud.api.ApiDocket;
import com.goldgov.kcloud.api.ApiOverview;

import springfox.documentation.spring.web.plugins.Docket;

public class Application extends KcloudApplication{

	public static void main(String[] args) {
		KcloudApplication.startup(Application.class, args);
	}
	
	@Bean
	public Docket apiDocket() {
		ApiOverview apiOverview = new ApiOverview("文件服务API文档","本服务接口主要负责文件的保存及获取，支持定制保存的位置、文件再加工能力，并可在保存及获取文件时进行权限的检查。");
		apiOverview.setContact("刘海刚");
		
		ApiDocket apiDocket = new ApiDocket("$artifactId","/$artifactId.*");
		return apiDocket.build(apiOverview);
	}
}
